package com.lottery.game.core.modules.entity.game;

import com.lottery.game.common.BaseObject;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@NoArgsConstructor
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder
@Getter
@Setter
@Table(name = "game_type_playing_lottery_rule")
public class GameTypePlayingLotteryRule extends BaseObject {
    /**
     * 规则编号
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private String id;

    /**
     * 彩种编号
     */
    @Column(name = "game_type_playing_id")
    private String gameTypePlayingId;

    /**
     * 彩种名称
     */
    @Column(name = "game_type_playing_name")
    private String gameTypePlayingName;

    /**
     * 规则生效起始时间HH:mm:ss
     */
    @Column(name = "rule_start_time")
    private String ruleStartTime;

    /**
     * 规则生效结束时间HH:mm:ss
     */
    @Column(name = "rule_end_time")
    private String ruleEndTime;

    /**
     * 游戏持续时间秒
     */
    @Column(name = "duration_time")
    private Long durationTime;

    /**
     * 开奖封盘时间秒
     */
    @Column(name = "closed_time")
    private Long closedTime;

    /**
     * 排序
     */
    @Column(name = "sort")
    private Integer sort;

    /**
     * 是否可用
     */
    @Column(name = "del_flag")
    private String delFlag;

    /**
     * 备注
     */
    @Column(name = "remarks")
    private String remarks;

    /**
     * 创建者
     */
    @Column(name = "create_by")
    private String createBy;

    /**
     * 更新者
     */
    @Column(name = "update_by")
    private String updateBy;

    /**
     * 系统创建时间
     */
    @Column(name = "create_date")
    private Date createDate;

    /**
     * 系统更新时间
     */
    @Column(name = "update_date")
    private Date updateDate;
}
